<?php 
$screen = Blyn::app()->getCurrentNode()->getUIManager()->getCurrentScreen();
//register views for ajaxUrl
$ajaxLinkId = $screen->getAjaxLinkId('updateLeftMenu');
$url = $screen->getLinkUrl(array('bilyn_ajaxLink' => $ajaxLinkId));
$screen->registerAjaxLinkViews('updateLeftMenu', 'leftMenu');
?>
<script type="text/javascript">
    /*<![CDATA[*/
    jQuery(function($) {
        $.ajax({
            type:'POST',
            url:'<?php echo $url; ?>',
      //      data:{'joined_serviceId':serviceId,'join_service_message':message,'applyingRole':applyingRole},
            success:function(html){
                $('#leftbar').html(html);           
            }            
        });           
    });
</script>